<?php


$tags = $_POST["tags"];

if(tags_save($tags)){
	echo "Following Tags have been saved:\n" . implode(", ", $tags);
}else{
	header("HTTP/1.0 404 Not saved");
	echo "Error! Tags are not saved. Please try again.";
}


function tags_save($tags){
	//TODO: save tags
	return (time()%2 ? true : false);
}
?>
